import axios from 'axios'
import { BASE_URL } from '../utils/config.js'
console.log('axios里' + BASE_URL)
// 创建axios 实例 并改基地址baseURL
const instance = axios.create({
  baseURL: BASE_URL,
})
// instance 做任何配置。都不用担心会影响全局的axios
instance.interceptors.response.use((res) => {
  return res.data
})
export default instance
